<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title>免审核功能</title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <link rel="stylesheet" href="../../../../component/elementUI/index.css" />
  <link rel="stylesheet" href="../../../../style/wangeditor.css" />
  <link rel="stylesheet" href="../../../../style/index.css" />
</head>

<body>
  <div id="app" v-cloak>
    <!-- <h2>选择需要审核商品的企业</h2> -->
    <el-form :inline="true" :form="form">
      <el-form-item>
        <el-input v-model.trim="form.SQL_SerialNumber" clearable placeholder="请输入公司名" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="enterprise_info" height="calc(100vh - 140px)" stripe style="width: 100%">
      <!-- <el-table
        ref="multipleTable"
        :data="enterprise_info"
        tooltip-effect="dark"
        height="calc(100vh - 140px)"
        style="width: 100%"
        @selection-change="handleSelectionChange"
      >
        <el-table-column type="selection" width="55"> </el-table-column> -->
      <el-table-column prop="Enterprise_Logo" width="140" align="center" label="企业Logo">
        <template v-slot="{row}">
          <el-image fit="contain" :src="BASE_IMG + row.Enterprise_Logo"
            :preview-src-list="[BASE_IMG + row.Enterprise_Logo]" style="width: 100px; height: 100px"></el-image>
        </template>
      </el-table-column>
      <el-table-column width="180" align="center" prop="Enterprise_Info_SerialNumber" label="企业编号"></el-table-column>
      <el-table-column align="center" prop="Enterprise_Name" label="企业名称" width="250"></el-table-column>
      <el-table-column align="center" prop="Enterprise_Phone" label="企业电话"></el-table-column>
      <el-table-column prop="Picture_URL" width="140" align="center" label="营业执照">
        <template v-slot="{row}">
          <el-image fit="contain" :src="BASE_IMG + row.Picture_URL" :preview-src-list="[BASE_IMG + row.Picture_URL]"
            style="width: 100px; height: 100px"></el-image>
        </template>
      </el-table-column>
      <el-table-column  prop="Account_Number" label="银行账户" width="300">
        <template v-slot="{row}">
          <template v-if="row.Account_Number&&row.Account_Number!='()'">
            <div v-for="(item,index) in row.Account_Number.split(';')" :key="index">{{item}}</div>
          </template>
          <template v-else>
            暂无账户
          </template>
        </template>
      </el-table-column>
      <el-table-column align="center" prop="Enterprise_Address" label="企业地址" width="500"></el-table-column>
      <el-table-column prop="Need_Review
        " label="审核状态" width="100" :filters="[{ text: '免审核', value: '1' }, { text: '需审核', value: '0' }]"
        :filter-method="filterTag3" filter-placement="bottom-end">
        <template slot-scope="scope">
          <el-tag :type="scope.row.Need_Review
            === '1' ? 'danger' : 'success'" disable-transitions>{{scope.row.Need_Review == 0 ? '需审核' : '免审核'}}</el-tag>
        </template>
      </el-table-column>
      <el-table-column prop="Need_Review" label="状态" width="100">
        <template slot-scope="scope">
          <el-tag :type="scope.row.Row_Status
          === '77' ? 'danger' : 'success'" disable-transitions>{{scope.row.Row_Status == '77' ? '停用' : '正常'}}</el-tag>
        </template>
      </el-table-column>
      <el-table-column align="center" width="120" sortable :sort-orders="['ascending', 'descending']"
       prop="Article_Quantity" label="商品数量"></el-table-column>
      <el-table-column align="center" width="120" sortable :sort-orders="['ascending', 'descending']"
       prop="Specifications_Quantity" label="规格数量"></el-table-column>
      <el-table-column align="center" width="120" sortable :sort-orders="['ascending', 'descending']"
       prop="Sales_Amount" label="销售总金额"></el-table-column>
      <el-table-column align="center" width="120" sortable :sort-orders="['ascending', 'descending']"
       prop="Purchase_Amount" label="采购总金额"></el-table-column>
      <el-table-column label="操作" width="240">
        <template slot-scope="scope">
          <el-button size="mini"  style="margin-right: 10px;" type="success" @click="xiugai(scope.row)">编辑</el-button>
          
          <el-dropdown trigger="click" >
            <el-button size="mini">
              更多 <i class="el-icon-arrow-right"></i>
            </el-button>
            <template #dropdown>
              <el-dropdown-menu>
                <el-dropdown-item>
                  <el-button :disabled="jytype(scope.row)" size="mini" type="danger" @click="shgn(scope.$index, scope.row)">切换状态</el-button>
                </el-dropdown-item>
                <el-dropdown-item >
                  <el-button size="mini" type="danger" @click="show(scope.row)">订单详情</el-button>
                </el-dropdown-item>
                <el-dropdown-item >
                  <el-button size="mini" type="danger" @click="shanchu(scope.row)">删除</el-button>
                </el-dropdown-item>
              </el-dropdown-menu>
            </template>
          </el-dropdown>


<!-- 
          <el-button size="mini" type="success" @click="xiugai(scope.row)">编辑</el-button>
          <el-button size="mini" type="danger" @click="shanchu(scope.row)">删除</el-button> -->
          <!-- <el-button
              size="mini"
              @click="ybsahng(scope.$index, scope.row)"
              :disabled="isButtonEnabled(scope.row)"
              >审核商品</el-button
            > -->
        </template>
      </el-table-column>
    </el-table>
    <!-- <el-pagination @current-change="sjhandleCurrentChange" :page-size="15" background layout="prev, pager, next"
      :total="sjTotal">
    </el-pagination> -->
  </div>

  <script type="text/javascript" src="../../../../utils/wangeditor.js"></script>
  <script type="text/javascript" src="../../../../utils/jquery.min.js"></script>
  <script type="text/javascript" src="../../../../utils/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../../utils/vue.min.js"></script>
  <script type="text/javascript" src="../../../../utils/vuex.min.js"></script>
  <script type="text/javascript" src="../../../../component/elementUI/index.js"></script>
  <script type="text/javascript" src="../../../../component/component.js"></script>
  <script type="text/javascript" src="../../../../utils/xlsx.full.min.js"></script>
  <script type="text/javascript" src="../../../../utils/xlsx.core.min.js"></script>
  <script type="text/javascript" src="../../../../config/config.js"></script>
  <script type="text/javascript" src="../../../../utils/compressor.js"></script>
  <script type="text/javascript" src="../../../../utils/ID_Validity.js"></script>
  <script type="text/javascript" src="../../../../utils/utils.js"></script>
  <script type="text/javascript" src="../js/index.js"></script>
</body>

</html>